package com.ck.master.model;

import java.util.ArrayList;
import java.util.List;

public class ResourceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ResourceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andResourcetypeIsNull() {
            addCriterion("ResourceType is null");
            return (Criteria) this;
        }

        public Criteria andResourcetypeIsNotNull() {
            addCriterion("ResourceType is not null");
            return (Criteria) this;
        }

        public Criteria andResourcetypeEqualTo(Integer value) {
            addCriterion("ResourceType =", value, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeNotEqualTo(Integer value) {
            addCriterion("ResourceType <>", value, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeGreaterThan(Integer value) {
            addCriterion("ResourceType >", value, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ResourceType >=", value, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeLessThan(Integer value) {
            addCriterion("ResourceType <", value, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeLessThanOrEqualTo(Integer value) {
            addCriterion("ResourceType <=", value, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeIn(List<Integer> values) {
            addCriterion("ResourceType in", values, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeNotIn(List<Integer> values) {
            addCriterion("ResourceType not in", values, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeBetween(Integer value1, Integer value2) {
            addCriterion("ResourceType between", value1, value2, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ResourceType not between", value1, value2, "resourcetype");
            return (Criteria) this;
        }

        public Criteria andResourcenameIsNull() {
            addCriterion("ResourceName is null");
            return (Criteria) this;
        }

        public Criteria andResourcenameIsNotNull() {
            addCriterion("ResourceName is not null");
            return (Criteria) this;
        }

        public Criteria andResourcenameEqualTo(String value) {
            addCriterion("ResourceName =", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameNotEqualTo(String value) {
            addCriterion("ResourceName <>", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameGreaterThan(String value) {
            addCriterion("ResourceName >", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameGreaterThanOrEqualTo(String value) {
            addCriterion("ResourceName >=", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameLessThan(String value) {
            addCriterion("ResourceName <", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameLessThanOrEqualTo(String value) {
            addCriterion("ResourceName <=", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameLike(String value) {
            addCriterion("ResourceName like", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameNotLike(String value) {
            addCriterion("ResourceName not like", value, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameIn(List<String> values) {
            addCriterion("ResourceName in", values, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameNotIn(List<String> values) {
            addCriterion("ResourceName not in", values, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameBetween(String value1, String value2) {
            addCriterion("ResourceName between", value1, value2, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcenameNotBetween(String value1, String value2) {
            addCriterion("ResourceName not between", value1, value2, "resourcename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameIsNull() {
            addCriterion("ResourceTypeName is null");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameIsNotNull() {
            addCriterion("ResourceTypeName is not null");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameEqualTo(String value) {
            addCriterion("ResourceTypeName =", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameNotEqualTo(String value) {
            addCriterion("ResourceTypeName <>", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameGreaterThan(String value) {
            addCriterion("ResourceTypeName >", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameGreaterThanOrEqualTo(String value) {
            addCriterion("ResourceTypeName >=", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameLessThan(String value) {
            addCriterion("ResourceTypeName <", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameLessThanOrEqualTo(String value) {
            addCriterion("ResourceTypeName <=", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameLike(String value) {
            addCriterion("ResourceTypeName like", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameNotLike(String value) {
            addCriterion("ResourceTypeName not like", value, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameIn(List<String> values) {
            addCriterion("ResourceTypeName in", values, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameNotIn(List<String> values) {
            addCriterion("ResourceTypeName not in", values, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameBetween(String value1, String value2) {
            addCriterion("ResourceTypeName between", value1, value2, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcetypenameNotBetween(String value1, String value2) {
            addCriterion("ResourceTypeName not between", value1, value2, "resourcetypename");
            return (Criteria) this;
        }

        public Criteria andResourcemodelIsNull() {
            addCriterion("ResourceModel is null");
            return (Criteria) this;
        }

        public Criteria andResourcemodelIsNotNull() {
            addCriterion("ResourceModel is not null");
            return (Criteria) this;
        }

        public Criteria andResourcemodelEqualTo(String value) {
            addCriterion("ResourceModel =", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelNotEqualTo(String value) {
            addCriterion("ResourceModel <>", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelGreaterThan(String value) {
            addCriterion("ResourceModel >", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelGreaterThanOrEqualTo(String value) {
            addCriterion("ResourceModel >=", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelLessThan(String value) {
            addCriterion("ResourceModel <", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelLessThanOrEqualTo(String value) {
            addCriterion("ResourceModel <=", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelLike(String value) {
            addCriterion("ResourceModel like", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelNotLike(String value) {
            addCriterion("ResourceModel not like", value, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelIn(List<String> values) {
            addCriterion("ResourceModel in", values, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelNotIn(List<String> values) {
            addCriterion("ResourceModel not in", values, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelBetween(String value1, String value2) {
            addCriterion("ResourceModel between", value1, value2, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourcemodelNotBetween(String value1, String value2) {
            addCriterion("ResourceModel not between", value1, value2, "resourcemodel");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidIsNull() {
            addCriterion("ResourceUniqueId is null");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidIsNotNull() {
            addCriterion("ResourceUniqueId is not null");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidEqualTo(String value) {
            addCriterion("ResourceUniqueId =", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidNotEqualTo(String value) {
            addCriterion("ResourceUniqueId <>", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidGreaterThan(String value) {
            addCriterion("ResourceUniqueId >", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidGreaterThanOrEqualTo(String value) {
            addCriterion("ResourceUniqueId >=", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidLessThan(String value) {
            addCriterion("ResourceUniqueId <", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidLessThanOrEqualTo(String value) {
            addCriterion("ResourceUniqueId <=", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidLike(String value) {
            addCriterion("ResourceUniqueId like", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidNotLike(String value) {
            addCriterion("ResourceUniqueId not like", value, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidIn(List<String> values) {
            addCriterion("ResourceUniqueId in", values, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidNotIn(List<String> values) {
            addCriterion("ResourceUniqueId not in", values, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidBetween(String value1, String value2) {
            addCriterion("ResourceUniqueId between", value1, value2, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andResourceuniqueidNotBetween(String value1, String value2) {
            addCriterion("ResourceUniqueId not between", value1, value2, "resourceuniqueid");
            return (Criteria) this;
        }

        public Criteria andOsIsNull() {
            addCriterion("OS is null");
            return (Criteria) this;
        }

        public Criteria andOsIsNotNull() {
            addCriterion("OS is not null");
            return (Criteria) this;
        }

        public Criteria andOsEqualTo(String value) {
            addCriterion("OS =", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsNotEqualTo(String value) {
            addCriterion("OS <>", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsGreaterThan(String value) {
            addCriterion("OS >", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsGreaterThanOrEqualTo(String value) {
            addCriterion("OS >=", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsLessThan(String value) {
            addCriterion("OS <", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsLessThanOrEqualTo(String value) {
            addCriterion("OS <=", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsLike(String value) {
            addCriterion("OS like", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsNotLike(String value) {
            addCriterion("OS not like", value, "os");
            return (Criteria) this;
        }

        public Criteria andOsIn(List<String> values) {
            addCriterion("OS in", values, "os");
            return (Criteria) this;
        }

        public Criteria andOsNotIn(List<String> values) {
            addCriterion("OS not in", values, "os");
            return (Criteria) this;
        }

        public Criteria andOsBetween(String value1, String value2) {
            addCriterion("OS between", value1, value2, "os");
            return (Criteria) this;
        }

        public Criteria andOsNotBetween(String value1, String value2) {
            addCriterion("OS not between", value1, value2, "os");
            return (Criteria) this;
        }

        public Criteria andIpIsNull() {
            addCriterion("IP is null");
            return (Criteria) this;
        }

        public Criteria andIpIsNotNull() {
            addCriterion("IP is not null");
            return (Criteria) this;
        }

        public Criteria andIpEqualTo(String value) {
            addCriterion("IP =", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotEqualTo(String value) {
            addCriterion("IP <>", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpGreaterThan(String value) {
            addCriterion("IP >", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpGreaterThanOrEqualTo(String value) {
            addCriterion("IP >=", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLessThan(String value) {
            addCriterion("IP <", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLessThanOrEqualTo(String value) {
            addCriterion("IP <=", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLike(String value) {
            addCriterion("IP like", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotLike(String value) {
            addCriterion("IP not like", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpIn(List<String> values) {
            addCriterion("IP in", values, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotIn(List<String> values) {
            addCriterion("IP not in", values, "ip");
            return (Criteria) this;
        }

        public Criteria andIpBetween(String value1, String value2) {
            addCriterion("IP between", value1, value2, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotBetween(String value1, String value2) {
            addCriterion("IP not between", value1, value2, "ip");
            return (Criteria) this;
        }

        public Criteria andMaskIsNull() {
            addCriterion("Mask is null");
            return (Criteria) this;
        }

        public Criteria andMaskIsNotNull() {
            addCriterion("Mask is not null");
            return (Criteria) this;
        }

        public Criteria andMaskEqualTo(String value) {
            addCriterion("Mask =", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskNotEqualTo(String value) {
            addCriterion("Mask <>", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskGreaterThan(String value) {
            addCriterion("Mask >", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskGreaterThanOrEqualTo(String value) {
            addCriterion("Mask >=", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskLessThan(String value) {
            addCriterion("Mask <", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskLessThanOrEqualTo(String value) {
            addCriterion("Mask <=", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskLike(String value) {
            addCriterion("Mask like", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskNotLike(String value) {
            addCriterion("Mask not like", value, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskIn(List<String> values) {
            addCriterion("Mask in", values, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskNotIn(List<String> values) {
            addCriterion("Mask not in", values, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskBetween(String value1, String value2) {
            addCriterion("Mask between", value1, value2, "mask");
            return (Criteria) this;
        }

        public Criteria andMaskNotBetween(String value1, String value2) {
            addCriterion("Mask not between", value1, value2, "mask");
            return (Criteria) this;
        }

        public Criteria andCpuIsNull() {
            addCriterion("CPU is null");
            return (Criteria) this;
        }

        public Criteria andCpuIsNotNull() {
            addCriterion("CPU is not null");
            return (Criteria) this;
        }

        public Criteria andCpuEqualTo(String value) {
            addCriterion("CPU =", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotEqualTo(String value) {
            addCriterion("CPU <>", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuGreaterThan(String value) {
            addCriterion("CPU >", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuGreaterThanOrEqualTo(String value) {
            addCriterion("CPU >=", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuLessThan(String value) {
            addCriterion("CPU <", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuLessThanOrEqualTo(String value) {
            addCriterion("CPU <=", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuLike(String value) {
            addCriterion("CPU like", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotLike(String value) {
            addCriterion("CPU not like", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuIn(List<String> values) {
            addCriterion("CPU in", values, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotIn(List<String> values) {
            addCriterion("CPU not in", values, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuBetween(String value1, String value2) {
            addCriterion("CPU between", value1, value2, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotBetween(String value1, String value2) {
            addCriterion("CPU not between", value1, value2, "cpu");
            return (Criteria) this;
        }

        public Criteria andMemIsNull() {
            addCriterion("MEM is null");
            return (Criteria) this;
        }

        public Criteria andMemIsNotNull() {
            addCriterion("MEM is not null");
            return (Criteria) this;
        }

        public Criteria andMemEqualTo(String value) {
            addCriterion("MEM =", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemNotEqualTo(String value) {
            addCriterion("MEM <>", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemGreaterThan(String value) {
            addCriterion("MEM >", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemGreaterThanOrEqualTo(String value) {
            addCriterion("MEM >=", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemLessThan(String value) {
            addCriterion("MEM <", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemLessThanOrEqualTo(String value) {
            addCriterion("MEM <=", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemLike(String value) {
            addCriterion("MEM like", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemNotLike(String value) {
            addCriterion("MEM not like", value, "mem");
            return (Criteria) this;
        }

        public Criteria andMemIn(List<String> values) {
            addCriterion("MEM in", values, "mem");
            return (Criteria) this;
        }

        public Criteria andMemNotIn(List<String> values) {
            addCriterion("MEM not in", values, "mem");
            return (Criteria) this;
        }

        public Criteria andMemBetween(String value1, String value2) {
            addCriterion("MEM between", value1, value2, "mem");
            return (Criteria) this;
        }

        public Criteria andMemNotBetween(String value1, String value2) {
            addCriterion("MEM not between", value1, value2, "mem");
            return (Criteria) this;
        }

        public Criteria andMacIsNull() {
            addCriterion("MAC is null");
            return (Criteria) this;
        }

        public Criteria andMacIsNotNull() {
            addCriterion("MAC is not null");
            return (Criteria) this;
        }

        public Criteria andMacEqualTo(String value) {
            addCriterion("MAC =", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotEqualTo(String value) {
            addCriterion("MAC <>", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacGreaterThan(String value) {
            addCriterion("MAC >", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacGreaterThanOrEqualTo(String value) {
            addCriterion("MAC >=", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacLessThan(String value) {
            addCriterion("MAC <", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacLessThanOrEqualTo(String value) {
            addCriterion("MAC <=", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacLike(String value) {
            addCriterion("MAC like", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotLike(String value) {
            addCriterion("MAC not like", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacIn(List<String> values) {
            addCriterion("MAC in", values, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotIn(List<String> values) {
            addCriterion("MAC not in", values, "mac");
            return (Criteria) this;
        }

        public Criteria andMacBetween(String value1, String value2) {
            addCriterion("MAC between", value1, value2, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotBetween(String value1, String value2) {
            addCriterion("MAC not between", value1, value2, "mac");
            return (Criteria) this;
        }

        public Criteria andManagetypeIsNull() {
            addCriterion("ManageType is null");
            return (Criteria) this;
        }

        public Criteria andManagetypeIsNotNull() {
            addCriterion("ManageType is not null");
            return (Criteria) this;
        }

        public Criteria andManagetypeEqualTo(Integer value) {
            addCriterion("ManageType =", value, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeNotEqualTo(Integer value) {
            addCriterion("ManageType <>", value, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeGreaterThan(Integer value) {
            addCriterion("ManageType >", value, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ManageType >=", value, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeLessThan(Integer value) {
            addCriterion("ManageType <", value, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeLessThanOrEqualTo(Integer value) {
            addCriterion("ManageType <=", value, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeIn(List<Integer> values) {
            addCriterion("ManageType in", values, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeNotIn(List<Integer> values) {
            addCriterion("ManageType not in", values, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeBetween(Integer value1, Integer value2) {
            addCriterion("ManageType between", value1, value2, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ManageType not between", value1, value2, "managetype");
            return (Criteria) this;
        }

        public Criteria andManagestatusIsNull() {
            addCriterion("ManageStatus is null");
            return (Criteria) this;
        }

        public Criteria andManagestatusIsNotNull() {
            addCriterion("ManageStatus is not null");
            return (Criteria) this;
        }

        public Criteria andManagestatusEqualTo(Integer value) {
            addCriterion("ManageStatus =", value, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusNotEqualTo(Integer value) {
            addCriterion("ManageStatus <>", value, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusGreaterThan(Integer value) {
            addCriterion("ManageStatus >", value, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("ManageStatus >=", value, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusLessThan(Integer value) {
            addCriterion("ManageStatus <", value, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusLessThanOrEqualTo(Integer value) {
            addCriterion("ManageStatus <=", value, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusIn(List<Integer> values) {
            addCriterion("ManageStatus in", values, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusNotIn(List<Integer> values) {
            addCriterion("ManageStatus not in", values, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusBetween(Integer value1, Integer value2) {
            addCriterion("ManageStatus between", value1, value2, "managestatus");
            return (Criteria) this;
        }

        public Criteria andManagestatusNotBetween(Integer value1, Integer value2) {
            addCriterion("ManageStatus not between", value1, value2, "managestatus");
            return (Criteria) this;
        }

        public Criteria andIscriticalIsNull() {
            addCriterion("IsCritical is null");
            return (Criteria) this;
        }

        public Criteria andIscriticalIsNotNull() {
            addCriterion("IsCritical is not null");
            return (Criteria) this;
        }

        public Criteria andIscriticalEqualTo(Boolean value) {
            addCriterion("IsCritical =", value, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalNotEqualTo(Boolean value) {
            addCriterion("IsCritical <>", value, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalGreaterThan(Boolean value) {
            addCriterion("IsCritical >", value, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IsCritical >=", value, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalLessThan(Boolean value) {
            addCriterion("IsCritical <", value, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalLessThanOrEqualTo(Boolean value) {
            addCriterion("IsCritical <=", value, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalIn(List<Boolean> values) {
            addCriterion("IsCritical in", values, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalNotIn(List<Boolean> values) {
            addCriterion("IsCritical not in", values, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalBetween(Boolean value1, Boolean value2) {
            addCriterion("IsCritical between", value1, value2, "iscritical");
            return (Criteria) this;
        }

        public Criteria andIscriticalNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IsCritical not between", value1, value2, "iscritical");
            return (Criteria) this;
        }

        public Criteria andDistrictIsNull() {
            addCriterion("District is null");
            return (Criteria) this;
        }

        public Criteria andDistrictIsNotNull() {
            addCriterion("District is not null");
            return (Criteria) this;
        }

        public Criteria andDistrictEqualTo(String value) {
            addCriterion("District =", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictNotEqualTo(String value) {
            addCriterion("District <>", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictGreaterThan(String value) {
            addCriterion("District >", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictGreaterThanOrEqualTo(String value) {
            addCriterion("District >=", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictLessThan(String value) {
            addCriterion("District <", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictLessThanOrEqualTo(String value) {
            addCriterion("District <=", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictLike(String value) {
            addCriterion("District like", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictNotLike(String value) {
            addCriterion("District not like", value, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictIn(List<String> values) {
            addCriterion("District in", values, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictNotIn(List<String> values) {
            addCriterion("District not in", values, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictBetween(String value1, String value2) {
            addCriterion("District between", value1, value2, "district");
            return (Criteria) this;
        }

        public Criteria andDistrictNotBetween(String value1, String value2) {
            addCriterion("District not between", value1, value2, "district");
            return (Criteria) this;
        }

        public Criteria andManagerIsNull() {
            addCriterion("Manager is null");
            return (Criteria) this;
        }

        public Criteria andManagerIsNotNull() {
            addCriterion("Manager is not null");
            return (Criteria) this;
        }

        public Criteria andManagerEqualTo(String value) {
            addCriterion("Manager =", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerNotEqualTo(String value) {
            addCriterion("Manager <>", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerGreaterThan(String value) {
            addCriterion("Manager >", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerGreaterThanOrEqualTo(String value) {
            addCriterion("Manager >=", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerLessThan(String value) {
            addCriterion("Manager <", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerLessThanOrEqualTo(String value) {
            addCriterion("Manager <=", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerLike(String value) {
            addCriterion("Manager like", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerNotLike(String value) {
            addCriterion("Manager not like", value, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerIn(List<String> values) {
            addCriterion("Manager in", values, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerNotIn(List<String> values) {
            addCriterion("Manager not in", values, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerBetween(String value1, String value2) {
            addCriterion("Manager between", value1, value2, "manager");
            return (Criteria) this;
        }

        public Criteria andManagerNotBetween(String value1, String value2) {
            addCriterion("Manager not between", value1, value2, "manager");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("Description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("Description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("Description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("Description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("Description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("Description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("Description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("Description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("Description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("Description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("Description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("Description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("Description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("Description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andMajorportIsNull() {
            addCriterion("MajorPort is null");
            return (Criteria) this;
        }

        public Criteria andMajorportIsNotNull() {
            addCriterion("MajorPort is not null");
            return (Criteria) this;
        }

        public Criteria andMajorportEqualTo(Integer value) {
            addCriterion("MajorPort =", value, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportNotEqualTo(Integer value) {
            addCriterion("MajorPort <>", value, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportGreaterThan(Integer value) {
            addCriterion("MajorPort >", value, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportGreaterThanOrEqualTo(Integer value) {
            addCriterion("MajorPort >=", value, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportLessThan(Integer value) {
            addCriterion("MajorPort <", value, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportLessThanOrEqualTo(Integer value) {
            addCriterion("MajorPort <=", value, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportIn(List<Integer> values) {
            addCriterion("MajorPort in", values, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportNotIn(List<Integer> values) {
            addCriterion("MajorPort not in", values, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportBetween(Integer value1, Integer value2) {
            addCriterion("MajorPort between", value1, value2, "majorport");
            return (Criteria) this;
        }

        public Criteria andMajorportNotBetween(Integer value1, Integer value2) {
            addCriterion("MajorPort not between", value1, value2, "majorport");
            return (Criteria) this;
        }

        public Criteria andLocatedserverIsNull() {
            addCriterion("LocatedServer is null");
            return (Criteria) this;
        }

        public Criteria andLocatedserverIsNotNull() {
            addCriterion("LocatedServer is not null");
            return (Criteria) this;
        }

        public Criteria andLocatedserverEqualTo(String value) {
            addCriterion("LocatedServer =", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverNotEqualTo(String value) {
            addCriterion("LocatedServer <>", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverGreaterThan(String value) {
            addCriterion("LocatedServer >", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverGreaterThanOrEqualTo(String value) {
            addCriterion("LocatedServer >=", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverLessThan(String value) {
            addCriterion("LocatedServer <", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverLessThanOrEqualTo(String value) {
            addCriterion("LocatedServer <=", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverLike(String value) {
            addCriterion("LocatedServer like", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverNotLike(String value) {
            addCriterion("LocatedServer not like", value, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverIn(List<String> values) {
            addCriterion("LocatedServer in", values, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverNotIn(List<String> values) {
            addCriterion("LocatedServer not in", values, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverBetween(String value1, String value2) {
            addCriterion("LocatedServer between", value1, value2, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andLocatedserverNotBetween(String value1, String value2) {
            addCriterion("LocatedServer not between", value1, value2, "locatedserver");
            return (Criteria) this;
        }

        public Criteria andHealthIsNull() {
            addCriterion("Health is null");
            return (Criteria) this;
        }

        public Criteria andHealthIsNotNull() {
            addCriterion("Health is not null");
            return (Criteria) this;
        }

        public Criteria andHealthEqualTo(Integer value) {
            addCriterion("Health =", value, "health");
            return (Criteria) this;
        }

        public Criteria andHealthNotEqualTo(Integer value) {
            addCriterion("Health <>", value, "health");
            return (Criteria) this;
        }

        public Criteria andHealthGreaterThan(Integer value) {
            addCriterion("Health >", value, "health");
            return (Criteria) this;
        }

        public Criteria andHealthGreaterThanOrEqualTo(Integer value) {
            addCriterion("Health >=", value, "health");
            return (Criteria) this;
        }

        public Criteria andHealthLessThan(Integer value) {
            addCriterion("Health <", value, "health");
            return (Criteria) this;
        }

        public Criteria andHealthLessThanOrEqualTo(Integer value) {
            addCriterion("Health <=", value, "health");
            return (Criteria) this;
        }

        public Criteria andHealthIn(List<Integer> values) {
            addCriterion("Health in", values, "health");
            return (Criteria) this;
        }

        public Criteria andHealthNotIn(List<Integer> values) {
            addCriterion("Health not in", values, "health");
            return (Criteria) this;
        }

        public Criteria andHealthBetween(Integer value1, Integer value2) {
            addCriterion("Health between", value1, value2, "health");
            return (Criteria) this;
        }

        public Criteria andHealthNotBetween(Integer value1, Integer value2) {
            addCriterion("Health not between", value1, value2, "health");
            return (Criteria) this;
        }

        public Criteria andAvailabilityIsNull() {
            addCriterion("Availability is null");
            return (Criteria) this;
        }

        public Criteria andAvailabilityIsNotNull() {
            addCriterion("Availability is not null");
            return (Criteria) this;
        }

        public Criteria andAvailabilityEqualTo(Integer value) {
            addCriterion("Availability =", value, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityNotEqualTo(Integer value) {
            addCriterion("Availability <>", value, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityGreaterThan(Integer value) {
            addCriterion("Availability >", value, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityGreaterThanOrEqualTo(Integer value) {
            addCriterion("Availability >=", value, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityLessThan(Integer value) {
            addCriterion("Availability <", value, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityLessThanOrEqualTo(Integer value) {
            addCriterion("Availability <=", value, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityIn(List<Integer> values) {
            addCriterion("Availability in", values, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityNotIn(List<Integer> values) {
            addCriterion("Availability not in", values, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityBetween(Integer value1, Integer value2) {
            addCriterion("Availability between", value1, value2, "availability");
            return (Criteria) this;
        }

        public Criteria andAvailabilityNotBetween(Integer value1, Integer value2) {
            addCriterion("Availability not between", value1, value2, "availability");
            return (Criteria) this;
        }

        public Criteria andManufacturerIsNull() {
            addCriterion("Manufacturer is null");
            return (Criteria) this;
        }

        public Criteria andManufacturerIsNotNull() {
            addCriterion("Manufacturer is not null");
            return (Criteria) this;
        }

        public Criteria andManufacturerEqualTo(String value) {
            addCriterion("Manufacturer =", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerNotEqualTo(String value) {
            addCriterion("Manufacturer <>", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerGreaterThan(String value) {
            addCriterion("Manufacturer >", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerGreaterThanOrEqualTo(String value) {
            addCriterion("Manufacturer >=", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerLessThan(String value) {
            addCriterion("Manufacturer <", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerLessThanOrEqualTo(String value) {
            addCriterion("Manufacturer <=", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerLike(String value) {
            addCriterion("Manufacturer like", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerNotLike(String value) {
            addCriterion("Manufacturer not like", value, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerIn(List<String> values) {
            addCriterion("Manufacturer in", values, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerNotIn(List<String> values) {
            addCriterion("Manufacturer not in", values, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerBetween(String value1, String value2) {
            addCriterion("Manufacturer between", value1, value2, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andManufacturerNotBetween(String value1, String value2) {
            addCriterion("Manufacturer not between", value1, value2, "manufacturer");
            return (Criteria) this;
        }

        public Criteria andLocationcodeIsNull() {
            addCriterion("LocationCode is null");
            return (Criteria) this;
        }

        public Criteria andLocationcodeIsNotNull() {
            addCriterion("LocationCode is not null");
            return (Criteria) this;
        }

        public Criteria andLocationcodeEqualTo(String value) {
            addCriterion("LocationCode =", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeNotEqualTo(String value) {
            addCriterion("LocationCode <>", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeGreaterThan(String value) {
            addCriterion("LocationCode >", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeGreaterThanOrEqualTo(String value) {
            addCriterion("LocationCode >=", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeLessThan(String value) {
            addCriterion("LocationCode <", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeLessThanOrEqualTo(String value) {
            addCriterion("LocationCode <=", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeLike(String value) {
            addCriterion("LocationCode like", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeNotLike(String value) {
            addCriterion("LocationCode not like", value, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeIn(List<String> values) {
            addCriterion("LocationCode in", values, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeNotIn(List<String> values) {
            addCriterion("LocationCode not in", values, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeBetween(String value1, String value2) {
            addCriterion("LocationCode between", value1, value2, "locationcode");
            return (Criteria) this;
        }

        public Criteria andLocationcodeNotBetween(String value1, String value2) {
            addCriterion("LocationCode not between", value1, value2, "locationcode");
            return (Criteria) this;
        }

        public Criteria andResourceidIsNull() {
            addCriterion("resourceId is null");
            return (Criteria) this;
        }

        public Criteria andResourceidIsNotNull() {
            addCriterion("resourceId is not null");
            return (Criteria) this;
        }

        public Criteria andResourceidEqualTo(Integer value) {
            addCriterion("resourceId =", value, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidNotEqualTo(Integer value) {
            addCriterion("resourceId <>", value, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidGreaterThan(Integer value) {
            addCriterion("resourceId >", value, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidGreaterThanOrEqualTo(Integer value) {
            addCriterion("resourceId >=", value, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidLessThan(Integer value) {
            addCriterion("resourceId <", value, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidLessThanOrEqualTo(Integer value) {
            addCriterion("resourceId <=", value, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidIn(List<Integer> values) {
            addCriterion("resourceId in", values, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidNotIn(List<Integer> values) {
            addCriterion("resourceId not in", values, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidBetween(Integer value1, Integer value2) {
            addCriterion("resourceId between", value1, value2, "resourceid");
            return (Criteria) this;
        }

        public Criteria andResourceidNotBetween(Integer value1, Integer value2) {
            addCriterion("resourceId not between", value1, value2, "resourceid");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexIsNull() {
            addCriterion("ChildResourceIndex is null");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexIsNotNull() {
            addCriterion("ChildResourceIndex is not null");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexEqualTo(Integer value) {
            addCriterion("ChildResourceIndex =", value, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexNotEqualTo(Integer value) {
            addCriterion("ChildResourceIndex <>", value, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexGreaterThan(Integer value) {
            addCriterion("ChildResourceIndex >", value, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexGreaterThanOrEqualTo(Integer value) {
            addCriterion("ChildResourceIndex >=", value, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexLessThan(Integer value) {
            addCriterion("ChildResourceIndex <", value, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexLessThanOrEqualTo(Integer value) {
            addCriterion("ChildResourceIndex <=", value, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexIn(List<Integer> values) {
            addCriterion("ChildResourceIndex in", values, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexNotIn(List<Integer> values) {
            addCriterion("ChildResourceIndex not in", values, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexBetween(Integer value1, Integer value2) {
            addCriterion("ChildResourceIndex between", value1, value2, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andChildresourceindexNotBetween(Integer value1, Integer value2) {
            addCriterion("ChildResourceIndex not between", value1, value2, "childresourceindex");
            return (Criteria) this;
        }

        public Criteria andCapacityIsNull() {
            addCriterion("Capacity is null");
            return (Criteria) this;
        }

        public Criteria andCapacityIsNotNull() {
            addCriterion("Capacity is not null");
            return (Criteria) this;
        }

        public Criteria andCapacityEqualTo(String value) {
            addCriterion("Capacity =", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityNotEqualTo(String value) {
            addCriterion("Capacity <>", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityGreaterThan(String value) {
            addCriterion("Capacity >", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityGreaterThanOrEqualTo(String value) {
            addCriterion("Capacity >=", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityLessThan(String value) {
            addCriterion("Capacity <", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityLessThanOrEqualTo(String value) {
            addCriterion("Capacity <=", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityLike(String value) {
            addCriterion("Capacity like", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityNotLike(String value) {
            addCriterion("Capacity not like", value, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityIn(List<String> values) {
            addCriterion("Capacity in", values, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityNotIn(List<String> values) {
            addCriterion("Capacity not in", values, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityBetween(String value1, String value2) {
            addCriterion("Capacity between", value1, value2, "capacity");
            return (Criteria) this;
        }

        public Criteria andCapacityNotBetween(String value1, String value2) {
            addCriterion("Capacity not between", value1, value2, "capacity");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridIsNull() {
            addCriterion("LocatedServerId is null");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridIsNotNull() {
            addCriterion("LocatedServerId is not null");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridEqualTo(Integer value) {
            addCriterion("LocatedServerId =", value, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridNotEqualTo(Integer value) {
            addCriterion("LocatedServerId <>", value, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridGreaterThan(Integer value) {
            addCriterion("LocatedServerId >", value, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridGreaterThanOrEqualTo(Integer value) {
            addCriterion("LocatedServerId >=", value, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridLessThan(Integer value) {
            addCriterion("LocatedServerId <", value, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridLessThanOrEqualTo(Integer value) {
            addCriterion("LocatedServerId <=", value, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridIn(List<Integer> values) {
            addCriterion("LocatedServerId in", values, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridNotIn(List<Integer> values) {
            addCriterion("LocatedServerId not in", values, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridBetween(Integer value1, Integer value2) {
            addCriterion("LocatedServerId between", value1, value2, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andLocatedserveridNotBetween(Integer value1, Integer value2) {
            addCriterion("LocatedServerId not between", value1, value2, "locatedserverid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidIsNull() {
            addCriterion("ParentResourceId is null");
            return (Criteria) this;
        }

        public Criteria andParentresourceidIsNotNull() {
            addCriterion("ParentResourceId is not null");
            return (Criteria) this;
        }

        public Criteria andParentresourceidEqualTo(Integer value) {
            addCriterion("ParentResourceId =", value, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidNotEqualTo(Integer value) {
            addCriterion("ParentResourceId <>", value, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidGreaterThan(Integer value) {
            addCriterion("ParentResourceId >", value, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ParentResourceId >=", value, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidLessThan(Integer value) {
            addCriterion("ParentResourceId <", value, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidLessThanOrEqualTo(Integer value) {
            addCriterion("ParentResourceId <=", value, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidIn(List<Integer> values) {
            addCriterion("ParentResourceId in", values, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidNotIn(List<Integer> values) {
            addCriterion("ParentResourceId not in", values, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidBetween(Integer value1, Integer value2) {
            addCriterion("ParentResourceId between", value1, value2, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andParentresourceidNotBetween(Integer value1, Integer value2) {
            addCriterion("ParentResourceId not between", value1, value2, "parentresourceid");
            return (Criteria) this;
        }

        public Criteria andPortindexIsNull() {
            addCriterion("PortIndex is null");
            return (Criteria) this;
        }

        public Criteria andPortindexIsNotNull() {
            addCriterion("PortIndex is not null");
            return (Criteria) this;
        }

        public Criteria andPortindexEqualTo(Integer value) {
            addCriterion("PortIndex =", value, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexNotEqualTo(Integer value) {
            addCriterion("PortIndex <>", value, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexGreaterThan(Integer value) {
            addCriterion("PortIndex >", value, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexGreaterThanOrEqualTo(Integer value) {
            addCriterion("PortIndex >=", value, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexLessThan(Integer value) {
            addCriterion("PortIndex <", value, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexLessThanOrEqualTo(Integer value) {
            addCriterion("PortIndex <=", value, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexIn(List<Integer> values) {
            addCriterion("PortIndex in", values, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexNotIn(List<Integer> values) {
            addCriterion("PortIndex not in", values, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexBetween(Integer value1, Integer value2) {
            addCriterion("PortIndex between", value1, value2, "portindex");
            return (Criteria) this;
        }

        public Criteria andPortindexNotBetween(Integer value1, Integer value2) {
            addCriterion("PortIndex not between", value1, value2, "portindex");
            return (Criteria) this;
        }

        public Criteria andUnumIsNull() {
            addCriterion("Unum is null");
            return (Criteria) this;
        }

        public Criteria andUnumIsNotNull() {
            addCriterion("Unum is not null");
            return (Criteria) this;
        }

        public Criteria andUnumEqualTo(Integer value) {
            addCriterion("Unum =", value, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumNotEqualTo(Integer value) {
            addCriterion("Unum <>", value, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumGreaterThan(Integer value) {
            addCriterion("Unum >", value, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("Unum >=", value, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumLessThan(Integer value) {
            addCriterion("Unum <", value, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumLessThanOrEqualTo(Integer value) {
            addCriterion("Unum <=", value, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumIn(List<Integer> values) {
            addCriterion("Unum in", values, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumNotIn(List<Integer> values) {
            addCriterion("Unum not in", values, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumBetween(Integer value1, Integer value2) {
            addCriterion("Unum between", value1, value2, "unum");
            return (Criteria) this;
        }

        public Criteria andUnumNotBetween(Integer value1, Integer value2) {
            addCriterion("Unum not between", value1, value2, "unum");
            return (Criteria) this;
        }

        public Criteria andPortnumIsNull() {
            addCriterion("PortNum is null");
            return (Criteria) this;
        }

        public Criteria andPortnumIsNotNull() {
            addCriterion("PortNum is not null");
            return (Criteria) this;
        }

        public Criteria andPortnumEqualTo(Integer value) {
            addCriterion("PortNum =", value, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumNotEqualTo(Integer value) {
            addCriterion("PortNum <>", value, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumGreaterThan(Integer value) {
            addCriterion("PortNum >", value, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("PortNum >=", value, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumLessThan(Integer value) {
            addCriterion("PortNum <", value, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumLessThanOrEqualTo(Integer value) {
            addCriterion("PortNum <=", value, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumIn(List<Integer> values) {
            addCriterion("PortNum in", values, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumNotIn(List<Integer> values) {
            addCriterion("PortNum not in", values, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumBetween(Integer value1, Integer value2) {
            addCriterion("PortNum between", value1, value2, "portnum");
            return (Criteria) this;
        }

        public Criteria andPortnumNotBetween(Integer value1, Integer value2) {
            addCriterion("PortNum not between", value1, value2, "portnum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}